<?php
/**
 * common repository file Created by PhpStorm.
 * User: wumengmeng
 * Date: 2020/06/15
 * Time: 16:32
 */
 
 namespace HiCommon\Repository;

//use HiCommon\Model\AgreementCate;

class AgreementCateRepository extends BaseRepository
{
    public function base_model(){
        return new \HiCommon\Model\AgreementCate();
    }

    /*帮助中心-所有模块*/
    public function helpcenter_all(){
        $arr_option = [
          'where'=>['type'=>1],
          'order'=>['key'=>'sort','value'=>'asc'],
        ];
        $result = self::base_get_all($arr_option);
        return $result;
    }

    /*帮助中心-添加模块*/
    public function helpcenter_add_one($arr_input){
        $arr_input['type'] = 1;
        $result = self::base_add_one($arr_input);
        return $result;
    }

}